package cn.apienvrypt.domain;

import java.io.Serializable;

/**
 * @author lfj
 */
public class ResultDto<T> implements Serializable {
	private static final long serialVersionUID = -1L;

	private int msgCode = 200;
	private String msg = "success";
	private T data = null;
	/**
	 * 是否加密
	 */
	private boolean encrypted = true;
	/**
	 * 是否分页
	 */
	private boolean page = false;
	/**
	 * 服务端rsa签名
	 */
	private String sign;

	public ResultDto() {
	}

	public int getMsgCode() {
		return msgCode;
	}

	public void setMsgCode(int msgCode) {
		this.msgCode = msgCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public Boolean getEncrypted() {
		return encrypted;
	}

	public void setEncrypted(boolean encrypted) {
		this.encrypted = encrypted;
	}

	public boolean isPage() {
		return page;
	}

	public void setPage(boolean page) {
		this.page = page;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}
}